//
//	MCRecord.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCRecord : NSObject, NSCoding, Mappable{

	var acount : Int?
	var firstLetterUpper : String?
	var instrumentList : [MCInstrumentList]?


	class func newInstance(map: Map) -> Mappable?{
		return MCRecord()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		acount <- map["acount"]
		firstLetterUpper <- map["firstLetterUpper"]
		instrumentList <- map["instrumentList"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         acount = aDecoder.decodeObject(forKey: "acount") as? Int
         firstLetterUpper = aDecoder.decodeObject(forKey: "firstLetterUpper") as? String
         instrumentList = aDecoder.decodeObject(forKey: "instrumentList") as? [MCInstrumentList]

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if acount != nil{
			aCoder.encode(acount, forKey: "acount")
		}
		if firstLetterUpper != nil{
			aCoder.encode(firstLetterUpper, forKey: "firstLetterUpper")
		}
		if instrumentList != nil{
			aCoder.encode(instrumentList, forKey: "instrumentList")
		}

	}

}